package com.jagochan.module.business.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Accessors(chain = true)
@TableName("comment")
public class Comment {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "帖子ID")
    private Integer articleId;

    @Schema(description = "评论人")
    private Integer userId;

    @Schema(description = "回复数")
    private Integer replyCount;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "回复评论ID")
    private Integer commentId;

    @Schema(description = "引用回复")
    private String quote;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
